import Vue from "vue";

//==============================DateUtil=================================
const DateUtil = {
  monthUtil(senderDate, data) {
    if (senderDate.split("Jan").length!= 1) {
      data[0]++;
    } else if (senderDate.split("Feb").length != 1) {
      console.log("data[1]++;",data[1])
      data[1]++;
    }else if (senderDate.split("Mar").length != 1) {
      console.log("data[2]++;",data[2])
      data[2]++;
    }else if (senderDate.split("Apr").length != 1) {
      console.log("data[3]++;",data[3])
      data[3]++;
    }else if (senderDate.split("May").length != 1) {
      console.log("data[4]++;",data[4])
      data[4]++;
    }else if (senderDate.split("Jun").length != 1) {
      data[5]++;
    }else if (senderDate.split("Jul").length != 1) {
      data[6]++;
    }else if (senderDate.split("Aug").length != 1) {
      data[7]++;
    }else if (senderDate.split("Sep").length != 1) {
      data[8]++;
    }else if (senderDate.split("Oct").length != 1) {
      data[9]++;
    }else if (senderDate.split("Nov").length != 1) {
      data[10]++;
    }else if (senderDate.split("Dec").length != 1) {
      data[11]++;
    }

return data;
  }
};
Vue.prototype.DateUtil = DateUtil;
//==============================DateUtil=================================


export default {};